all: svr clt

svr:pmserver.cpp protobuf.pb.cc ./include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz
clt:pmclient.cpp protobuf.pb.cc ./include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz

.PHONY:clean
clean:
	rm -f svr clt